Optimal. Leaf size=21 \[ x (-(a-b))-\frac{a \cot (e+f x)}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0253417, antiderivative size = 21, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {3629, 8} \[ x (-(a-b))-\frac{a \cot (e+f x)}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3629
Rule 8
Rubi steps
\begin{align*} \int \cot ^2(e+f x) \left (a+b \tan ^2(e+f x)\right ) \, dx &=-\frac{a \cot (e+f x)}{f}+\int (-a+b) \, dx\\ &=-(a-b) x-\frac{a \cot (e+f x)}{f}\\ \end{align*}
Mathematica [C] time = 0.0180674, size = 34, normalized size = 1.62 \[ b x-\frac{a \cot (e+f x) \text{Hypergeometric2F1}\left (-\frac{1}{2},1,\frac{1}{2},-\tan ^2(e+f x)\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.034, size = 31, normalized size = 1.5 \begin{align*}{\frac{b \left ( fx+e \right ) +a \left ( -\cot \left ( fx+e \right ) -fx-e \right ) }{f}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.66738, size = 36, normalized size = 1.71 \begin{align*} -\frac{{\left (f x + e\right )}{\left (a - b\right )} + \frac{a}{\tan \left (f x + e\right )}}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.02883, size = 68, normalized size = 3.24 \begin{align*} -\frac{{\left (a - b\right )} f x \tan \left (f x + e\right ) + a}{f \tan \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.40587, size = 46, normalized size = 2.19 \begin{align*} \begin{cases} \tilde{\infty } a x & \text{for}\: \left (e = 0 \vee e = - f x\right ) \wedge \left (e = - f x \vee f = 0\right ) \\x \left (a + b \tan ^{2}{\left (e \right )}\right ) \cot ^{2}{\left (e \right )} & \text{for}\: f = 0 \\- a x - \frac{a}{f \tan{\left (e + f x \right )}} + b x & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.32599, size = 62, normalized size = 2.95 \begin{align*} -\frac{2 \,{\left (f x + e\right )}{\left (a - b\right )} - a \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + \frac{a}{\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )}}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]